#导包
import requests

#初始化
class LoginAPI():
    def __init__(self):
        self.url = "http://ihrm-test.itheima.net/api/sys/login"

    def login(self,data_json):
        return requests.post(self.url,json=data_json)